import request from '@/utils/request'

export default{
     getTeacherList(pageSize,limit,obj) {
        return request({
            url: `/admin/user/teacher/page/${pageSize}/${limit}`,
            method: 'get',
            params: obj
          })
     },
     deleteTeacher(id){
        return request({
            url: `/admin/user/teacher/delete/${id}`,
            method: 'delete'
          })
     },
     getTeacherById(id){
        return request({
            url: `/admin/user/teacher/getById/${id}`,
            method: 'get'
          })
     },
     add(obj){
        return request({
            url: `/admin/user/teacher/add`,
            method: 'post',
            data: obj
          })
     },
     update(obj){
        return request({
            url: `/admin/user/teacher/update`,
            method: 'put',
            data: obj
          })
     }
}


